﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Admin.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Internet资源管理
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

   <% Html.RenderPartial("AdminTopUc", "Internet资源管理"); %>
     <table width="100%" border="0" cellpadding="0" cellspacing="1" class="table03">
        <tr class="box03">
            <td height="28" colspan="4" align="center">
                <div align="right">
                </div>
                <div align="center">
                     <input type="button" id="btnAdd" value="新增" />
                </div>
            </td>
        </tr>
    </table>
    <table width="100%" height="5" border="0" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF">
        <tr>
            <td height="5" bgcolor="#FFFFFF">
            </td>
        </tr>
    </table>
     <div id="listDiv">
        <% Html.RenderAction("InternetListUc"); %>
    </div>
    <div id="editDiv" title="编辑资源">
    </div>

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="HeaderContent" runat="server">
<script type="text/javascript">
    $(function () {
        $("#editDiv").dialog({
            autoOpen: false,
            height:270,
            width: 550,
            modal: true,
            close: function () {
                window.location.reload();
            }
        });


        $("#btnAdd")
			.click(function () {
			    $("#editDiv").html("loading...");
			    $("#editDiv").load(appRoot + 'AdminStudy/InternetEditUc/?trd=' + rdTime());
			    $("#editDiv").dialog("open");
			});

    });

    var editClickA = function (id) {
        $("#editDiv").html("loading...");
        $("#editDiv").load(appRoot + 'AdminStudy/InternetEditUc/' + id + '?trd=' + rdTime());
        $("#editDiv").dialog("open");
    };

    </script>
</asp:Content>
